<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
      <form id="formsearch" >
            	<input type="hidden" value="{$sid}" name="id" class="field"/>
                 <input class="bin-select-searchbtn" type="hidden"></input>
		</form>	
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-id" >时间</th>
                <th class="table-title" >pv</th>
                <th class="table-title" >uv</th>
              </tr>
          </thead>
          <tbody>
          	 {foreach from=$list item=course}
            <tr>
              <td>{$course.time|date_format:"Y-m-d"}</td>
              <td>{$course.pv}</td>
              <td>{$course.uv}</td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
   <script type="text/javascript" src="{$_C.hy_path}js/Map.js"></script>
   <script type="text/javascript" src="{$_C.hy_path}js/bin.select.js"></script>
   <script>
   	
	$('.bin-select-searchbtn').click(function(){
		var url = window.location.href;
           url = url.substring(0,url.indexOf("?"));
		   url+="?g=admin&m=reporter&a=getUVPV";
		var json = uriJson(bulidFilterParams($("#formsearch")));
		if(json!=""&&json!=null&&json!=undefined){
			window.location.href=url+"&"+json;
		}
	});
	function order(sort_by,sort_order){
		if(sort_order=="DESC"){
			sort_order ="ASC";
		}else{
			sort_order ="DESC";
		}
		$("#sort_by").val(sort_by);
		$("#sort_order").val(sort_order);
		$('.bin-select-searchbtn').click();
	}
	function loadPage(where){
		var url = window.location.href;
           url = url.substring(0,url.indexOf("?"));
           url+="?g=admin&m=reporter&a=getUVPV";
		var json = uriJson(bulidFilterParams($("#formsearch")));
		if(json!=""&&json!=null&&json!=undefined){
			window.location.href=url+"&"+json+where;
		}else{
			window.location.href=url+where;
		}
	}
	
	
   </script>
   
	</body>
</html>
